﻿@model IEnumerable<MVCDemo.Models.Employee>
@using MVCDemo.Models;

@{
    ViewBag.Title = "Employee List";
}

<div style="font-family: Arial">
    <h2>Employee List</h2>
    <ul>
        @foreach (var employee in @Model)
        {
            <li>@Html.ActionLink(employee.Name, "Details", new { id = employee.EmployeeId })</li>
        }
    </ul>
    @Html.ActionLink("Back to Department's list", "Index", "Department");
</div>

